package com.yjy.enum_test;

// 3.定义枚举类，并实现接口
public enum PayStateEnum implements CodeEnum {
    PAID("1", "支付成功"),
    FAILED("2", "支付失败"),
    PAYING("3", "支付中"),
    READY("4", "待支付"),
    ;

    /** 编号 */
    private String code;
    /** 名称 */
    private String name;

    PayStateEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name;
    }
}